home *** CD-ROM | disk | FTP | other *** search
- write("# This map file needs to be placed on a server in a directory with a CGI\n");
- write("# Application capable of interpreting the Image Map information. If you\n");
- write("# are unsure about this, contact your web site administrator.\n");
-
- write("\n");
-
- var imagemap = slices[0][0].imagemap;
- if (imagemap) {
- var i = 0;
- while (i < imagemap.numberOfURLs) {
- var curImagemap = imagemap[i];
- write(curImagemap.shape); // Shapes are rect poly and circle
- write(" ", curImagemap.href, " ");
- for (var j=0; j<curImagemap.numCoords; j++) {
- if (j>0) write(" ");
- // polygon has n coords.
- // rect has 2 coords, topLeft, and botomRight.
- // Circle has one coord, center.
- write(curImagemap.xCoord(j), ",", curImagemap.yCoord(j));
- }
- if (curImagemap.shape == "circle") {
- // write the radius.
- write(" ", curImagemap.radius);
- }
- write("\n");
- i++;
- }
- if (exportDoc.hasBackgroundLink) {
- var curImagemap = exportDoc.backgroundLink;
- if (curImagemap.href) {
- write("default ", curImagemap.href, "\n");
- }
- }
- }
-
- write("\n# This Image Map was created with Macromedia Fireworks 3.0\n");
- write("# http://www.macromedia.com\n");
-